<template>
  <section>
    <el-pagination layout="prev, pager, next" :current-page="page" @current-change="currentChange" :page-size="pageSize"
      :total="total">
    </el-pagination>
  </section>
</template>
<script>
  export default {
    data() {
      return {

      };
    },
    methods: {
      currentChange(page) {
        var q = this.g.qs()
        q.page = page;

        console.log(this.g.url());
        this.$router.push(this.g.url().pathname + "?" + this.g.qsStr(q))
      }
    },
    mounted() {

    },
    props: {
      total: {},
      pageSize: {

        default: 5
      },
      page: {
        default: 1
      }
    },
    components: {

    }

  };

</script>
<style lang="scss" scoped>
</style>
